#include <iostream>
#include <string.h>

using namespace std;


int max(int a, int b)
{
    if (a > b)
        return a;
    else
        return b;
}

int main()
{
    const int const_len = 100;
    char a[const_len], b[const_len], c[const_len];
    scanf("%s %s",&a,&b);
    // cin >> a >> b;
    int len1 = strlen(a);
    int len2 = strlen(b);
    int maxlen = max(len1, len2);
    for (int i = 1; i <= maxlen; i++)
    {
        int tmpa;
        if (i > len1)
        {
            tmpa = 0;
        }
        else
        {
            tmpa = (int)(a[len1 - i] - '0');
        }

        int tmpb;
        if (i > len2)
        {
            tmpb = 0;
        }
        else
        {
            tmpb = (int)(b[len2 - i] - '0');
        }

        c[maxlen - i] = (tmpa + tmpb + '0');
    }
    c[maxlen] = '\0';
    
    printf("%s\n",c);
    // cout << c;
    return 0;
}

3
12
0 0
2 0
5 0
5 2 
5 4
5 5
4 5
2 5
0 5
0 4
0 2
0 1
6
0 0
2 0
5 0
5 2 
5 4
5 5
6
0 0
2 0
5 0
5 2 
5 5
3 3
